<template>
	<view class="" style="width:100%">
		<swiper class="swiper" circular :indicator-dots="false" :autoplay="true" :interval="3000"
			:duration="500" style="width:100%;height:100rpx">
			<swiper-item>
				<view class="info" >
					
					您已拥有【中级消防监控中级理论】有效期剩余{{getLastDayFromNow(userInfo.jkll_time)}}天
				</view> 
			</swiper-item>
			<swiper-item>
				<view class="info" >
					
					您已拥有【中级消防监控实操仿真】有效期剩余{{getLastDayFromNow(userInfo.jkfz_time)}}天
				</view> 
			</swiper-item>
			<swiper-item>
				<view class="info" >
					
					您已拥有【中级消防维保中级理论】有效期剩余{{getLastDayFromNow(userInfo.wbll_time)}}天
				</view> 
			</swiper-item>
			<swiper-item>
				<view class="info" >
					
					您已拥有【中级消防维保实操仿真】有效期剩余{{getLastDayFromNow(userInfo.wbfz_time)}}天
				</view> 
			</swiper-item>
		</swiper>
	</view>
				
	
</template>

<script>
	import {getLastDay,getLastDayFromNow} from '@/util/index.js'
	export default {
		name:"sliderHead",
		data() {
			return {
				list:[],
				userInfo:{
					overdue_time:0,
					member_time:0,
				},
				getLastDayFromNow
			};
		},
		mounted() {
			this.userInfo = uni.getStorageSync('user')
		},
		methods:{
			
		}
	}
</script>

<style scoped>
	.info{
		width:100%;
		text-align: center;
		background:#fff;
		padding:26rpx 0;
		box-sizing: border-box;
		font-size:30rpx
		
	}
</style>